from sanic import Blueprint
from sanic.response import json
from sanic_openapi import doc

user = Blueprint("user")
tagName = "用户管理"


# Demo controller
class UserController:

    @user.get("/login")
    @doc.tag(tagName)
    @doc.summary("用户登录")
    @doc.consumes()
    def login(self):
        return json({"aa": "bb"})
